

package com.hazelcast.internal.monitor.impl;

import com.hazelcast.instance.LocalInstanceStats;

import java.util.Map;

public interface LocalUserCodeNamespaceStats extends LocalInstanceStats {

    /**
     * Get the map of stats for a resource of a namespace.
     *
     * @return map of resource id to resource stats.
     */
    Map<String, LocalUserCodeNamespaceResourceStats> getResources();

    /**
     * @return the creation time of the stats object.
     */
    @Override
    long getCreationTime();

    /**
     * @return the quantity of resources belonging to a namespace.
     */
    long getResourcesCount();
}
